﻿using JunYu.CodeGeneration.Models.Model;
using JunYu.CodeGeneration.Repositorys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JunYu.CodeGeneration.Services
{
    public class AddServices : IAddServices
    {
        protected ICodeGenRepositorys<DBConnectionInfo> _codeGenRepositorys;
        public AddServices(ICodeGenRepositorys<DBConnectionInfo> codeGenRepositorys)
        {
            _codeGenRepositorys = codeGenRepositorys;
        }
        public void Add(DBConnectionInfo info)
        {
            string str = @"Data Source=192.168.3.8;Initial Catalog=text2;User ID=sa;Password=123456";
            var data = _codeGenRepositorys.SelectTable(str);
        }
    }
}
